int CryptInit();
int Crypt_InitKeys(char *PubKey, char *SecKey, char *keystring, char *randseedpath);
int Crypt_CheckSign(char *Document, char *UserKey);
char *Crypt_Sign(char *Body);
char *Crypt_SignKey(char *Key);
int Crypt_Encrypt(char *Body, char *UserKey, char **Signature, char **CryptBody);
char *Crypt_Decrypt(char *Document);

int Crypt_InitKeyFiles(char *PubKeyFName, char *SecKeyFName, char *keystring,
	long UserKeySerial, long BankKeySerial, char *randseedpath);
int Crypt_CheckUserSign(char *Document);
int Crypt_CheckBankSign(char *Document);
int Crypt_BankEncrypt(char *Body, char **Signature, char **CryptBody);

int GetIPrivLastError(char *sBuffer, int nLength);
